
Replication script for
Graham and Huber, "Designing Survey Experiments,"
forthcoming in the Handbook of Experimental Methodology

This replication file contains the code needed to reproduce the post hoc analysis of statistical power in Clifford et al. (2021). The remainder of our chapter is a review and does not involve original quantitative analysis.

------------------
LIST OF FILES

analysis.R: calculates results.

metadata.tab: original results from Clifford et al. replication file. Serves as the source for some parameters in the analysis.

------------------
COMPUTING ENVIRONMENT

The following is the output from running sessionInfo() on July 6, 2024.

R version 4.3.1 (2023-06-16 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)

Matrix products: default


locale:
[1] LC_COLLATE=English_United States.utf8 
[2] LC_CTYPE=English_United States.utf8   
[3] LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C                          
[5] LC_TIME=English_United States.utf8    

time zone: America/New_York
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
 [1] gtable_0.3.3            xfun_0.40               ggplot2_3.4.3          
 [4] htmlwidgets_1.6.2       insight_0.19.5          vctrs_0.6.3            
 [7] tools_4.3.1             generics_0.1.3          curl_5.0.2             
[10] tibble_3.2.1            fansi_1.0.4             pkgconfig_2.0.3        
[13] data.table_1.14.8       uuid_1.1-0              webshot_0.5.5          
[16] lifecycle_1.0.3         flextable_0.9.4         compiler_4.3.1         
[19] stringr_1.5.0           textshaping_0.3.6       munsell_0.5.0          
[22] httpuv_1.6.11           fontquiver_0.2.1        fontLiberation_0.1.0   
[25] htmltools_0.5.6         pillar_1.9.0            later_1.3.1            
[28] crayon_1.5.2            gfonts_0.2.0            ellipsis_0.3.2         
[31] DT_0.31                 openssl_2.1.0           useful_1.2.6           
[34] mime_0.12               fontBitstreamVera_0.1.1 zip_2.3.0              
[37] tidyselect_1.2.0        rvest_1.0.3             digest_0.6.33          
[40] stringi_1.7.12          dplyr_1.1.2             reshape2_1.4.4         
[43] coefplot_1.2.8          fastmap_1.1.1           grid_4.3.1             
[46] colorspace_2.1-0        cli_3.6.1               magrittr_2.0.3         
[49] crul_1.4.0              utf8_1.2.3              gdtools_0.3.4          
[52] scales_1.2.1            promises_1.2.1          lubridate_1.9.2        
[55] timechange_0.2.0        officer_0.6.3           rmarkdown_2.24         
[58] httr_1.4.7              modelsummary_1.4.2      ragg_1.2.5             
[61] askpass_1.1             kableExtra_1.3.4        shiny_1.7.5            
[64] evaluate_0.21           knitr_1.43              viridisLite_0.4.2      
[67] rlang_1.1.1             Rcpp_1.0.11             xtable_1.8-4           
[70] glue_1.6.2              httpcode_0.3.0          xml2_1.3.5             
[73] svglite_2.1.1           rstudioapi_0.15.0       jsonlite_1.8.7         
[76] R6_2.5.1                plyr_1.8.8              tables_0.9.17          
[79] systemfonts_1.0.4      

